package com.efounder.imageloader;

import android.app.Activity;
import android.content.Context;
import androidx.fragment.app.Fragment;
import android.widget.ImageView;

/**
 * 图片加载
 * Created by YQS on 2018/3/2.
 */

public abstract class AbstractImageLoader implements IPanSoftImageLoader {

    @Deprecated
    @Override
    public void displayImage(Context context, ImageView imageView, Object object) {
        displayImage(context, imageView, object, 0);

    }

    @Deprecated
    @Override
    public void displayImage(Context context, ImageView imageView, Object object, int errorResId) {
        displayImage(context, imageView, object, errorResId, 0);
    }


    @Override
    public void displayImage(Activity activity, ImageView imageView, Object object) {
        displayImage(activity, imageView, object, 0);

    }

    @Override
    public void displayImage(Activity activity, ImageView imageView, Object object, int errorResId) {
        displayImage(activity, imageView, object, errorResId, 0);
    }


    @Override
    public void displayImage(Fragment fragment, ImageView imageView, Object object) {
        displayImage(fragment, imageView, object, 0);

    }


    @Override
    public void displayImage(Fragment fragment, ImageView imageView, Object object, int errorResId) {
        displayImage(fragment, imageView, object, errorResId, 0);
    }

}
